<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>页面访问次数计数器(简单计数器)</title>
    </head>
    <body>
        <!-- 声明标识 -->
        <%!
            int count = 0;
        %>

        <!-- 脚本（或代码片段）java -->
        <%
            count ++;
        %>

        <!-- jsp表达式 -->
        Welcome! You are visitor NO. <%=count %>
    </body>
</html>

